var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate'); 

var schema = new mongoose.Schema({
    name:String,
    password:String,
    mail:String,
    city:String,
    date: { type: Date, default: Date.now },
    gender:String,
    author:String,
    interest:[],
    desc:String,
    introduce:String,
    author:String
});
schema.plugin(mongoosePaginate);
module.exports =  mongoose.model('User',  schema); // Model.paginate()